<?php

class coord{

	public $x;

	public function __construct($x){
/*{{{*/
		if($x < 0){
			$x = 0;
		}

		$area = area::getInstance();
		$iMaxX = $area -> len - 1;

		if($x > $iMaxX){
			$x = $iMaxX;
		}

		$this -> x = $x;
/*}}}*/
	}

}

?>
